package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * ReasonsSoilAnalysis generated by hbm2java
 */
@Entity
@Table(name="reasons_soil_analysis"
    ,catalog="madr_bd10"
)
public class ReasonsSoilAnalysis  implements java.io.Serializable {


     private Integer idReaSoiAna;
     private boolean keyReaSoiAna;
     private String reasonReaSoiAna;
     private Set productionEventses = new HashSet(0);

    public ReasonsSoilAnalysis() {
    }

	
    public ReasonsSoilAnalysis(boolean keyReaSoiAna, String reasonReaSoiAna) {
        this.keyReaSoiAna = keyReaSoiAna;
        this.reasonReaSoiAna = reasonReaSoiAna;
    }
    public ReasonsSoilAnalysis(boolean keyReaSoiAna, String reasonReaSoiAna, Set productionEventses) {
       this.keyReaSoiAna = keyReaSoiAna;
       this.reasonReaSoiAna = reasonReaSoiAna;
       this.productionEventses = productionEventses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_rea_soi_ana", unique=true, nullable=false)
    public Integer getIdReaSoiAna() {
        return this.idReaSoiAna;
    }
    
    public void setIdReaSoiAna(Integer idReaSoiAna) {
        this.idReaSoiAna = idReaSoiAna;
    }
    
    @Column(name="key_rea_soi_ana", nullable=false)
    public boolean isKeyReaSoiAna() {
        return this.keyReaSoiAna;
    }
    
    public void setKeyReaSoiAna(boolean keyReaSoiAna) {
        this.keyReaSoiAna = keyReaSoiAna;
    }
    
    @Column(name="reason_rea_soi_ana", nullable=false, length=45)
    public String getReasonReaSoiAna() {
        return this.reasonReaSoiAna;
    }
    
    public void setReasonReaSoiAna(String reasonReaSoiAna) {
        this.reasonReaSoiAna = reasonReaSoiAna;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="reasonsSoilAnalysis")
    public Set getProductionEventses() {
        return this.productionEventses;
    }
    
    public void setProductionEventses(Set productionEventses) {
        this.productionEventses = productionEventses;
    }




}


